package com.ruoyi.system.controller.backend;

import com.ruoyi.common.config.RuoYiConfig;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.file.FileUploadUtils;
import com.ruoyi.system.controller.CxBase;
import com.ruoyi.system.domain.CooperativeMerchant;
import com.ruoyi.system.domain.StudentInfo;
import com.ruoyi.system.domain.backend.CaseBack;
import com.ruoyi.system.domain.backend.PrAdType;
import com.ruoyi.system.domain.backend.SysBackExStInfo;
import com.ruoyi.system.domain.backend.SysBackUsrInfo;
import com.ruoyi.system.domain.front.RecommendPage;
import com.ruoyi.system.service.backend.IMerchantBackService;
import com.ruoyi.system.service.front.IMerchantFrontService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;


/**
 * 案件信息Controller
 *
 * @author ruoyi
 * @date 2021-04-07
 */
@RestController
@RequestMapping("/system/back/merchantfront")
public class MerchantBackController extends CxBase {
    @Autowired
    private IMerchantBackService merchantBackService;

    /**
     * 查询奖品广告号列表
     */
    @GetMapping("/selectPrAd")
    public TableDataInfo selectPrAd(PrAdType prAdType)
    {
        logput(prAdType,Thread.currentThread().getStackTrace()[1].getMethodName(),this.getClass());
        TableDataInfo tableDataInfo = getDataTable(merchantBackService.selectPrAd(prAdType));
        logout(tableDataInfo,Thread.currentThread().getStackTrace()[1].getMethodName(),this.getClass());
        return tableDataInfo;
    }
}

